//
//  NSStringchange.m
//  imgeUpDemo
//
//  Created by 方伟 on 16/5/31.
//  Copyright © 2016年 方伟. All rights reserved.
//

#import "NSStringchange.h"
@implementation NSStringchange



+(NSString *)uploadTypeWith:(UPLOADIMAGETYPE)type{

    switch (type) {
        case UPLOADIMAGETYPEICON:
            
           return @"avatar";
            
            break;
            
        case UPLOADIMAGETYPEIDCORD:
            
            return @"idcard";

            break;
            
        case UPLOADIMAGETYPETODAY:
        
            return @"mytask";

            break;
        case UPLOADIMAGETYPEMINE:
            return @"myjob";

            break;
            
        default:

            break;
    }


    return @"other";


}
+(NSString *)projectTypeWith:(ProjectStateType)type{

    switch (type) {
        case projectStateTypeWaiting:
            
            return @"waiting_accepted";
            
            break;
            
        case projectStateTypeNegotiation:
            
            return @"processing";
            
            break;
            
        case projectStateTypeGoing:
            
            return @"working";
            
            break;
        case projectStateTypeCompleted:
            return @"end";
            
            break;
            
        default:
            return nil;

            break;
    }

    

    return nil;

}


@end
